package com.spring.schedule_system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spring.schedule_system.entity.Tb_class;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository("Tb_classDao")
public interface Tb_classDao extends BaseMapper<Tb_class> {
    @Insert("INSERT INTO `tb_class`(class_name,class_count)SELECT classes_name,person_numbers FROM `tb_schedule1`;\n")
    int insertClass();
}
